package com.cn.hnust.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cn.hnust.pojo.Tavern;
import com.cn.hnust.util.Page;

public interface TavernMapper {
	int deleteByPrimaryKey(int tavern_id);

	int insert(Tavern tavern);

	int insertSelective(Tavern tavern);

	Tavern selectByPrimaryKey(Integer tavern_id);

	List<Tavern> getUsers();

	int updateByPrimaryKeySelective(Tavern tavern);

	int updateByPrimaryKey(Tavern tavern);

	Tavern getUser(int tavern_id);

	List<Tavern> selectPersons(@Param("tavern_name") String scenic_name, @Param("page") Page page);

	List<Tavern> queryAllRecord(@Param("page") Page page);

	int getCount();

	int getCountmh(@Param("tavern_name") String tavern_name);

}
